﻿class BaseDrawGrid implements IDrawGrid {
    grid: IGrid;
  
    rectWidth: number;
    rectHeight: number;
    rectWidthInt: number;
    rectHeightInt: number;

    Draw(drawArea: IDrawArea) {
        this.rectWidth = (drawArea.GetCanvas().width / this.grid.Width);
        this.rectHeight = (drawArea.GetCanvas().height / this.grid.Height);
        this.rectWidthInt = Math.floor(this.rectWidth) + 1;
        this.rectHeightInt = Math.floor(this.rectHeight) + 1;
    }

    Init(grid: IGrid) {
        this.grid = grid;

    

    }
} 